<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>$Title$</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
    <script src="https://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"></script>
    <script type="text/javascript">
        function checkPwd(){
            if($("#pwd").val()!=$("#repwd").val()){
                alert("两次输入密码不同")
                return false
            }
            return true
        }
    </script>
</head>
<title>注册</title>
<body>
    <h1 style="width: 50%;margin: auto;text-align: center">注册界面</h1>
    <form action="register.do" onsubmit="return checkPwd()">
        <table style="margin: 0 auto">
            <tr>
                <td>注册类型选择</td>
                <td>
                    <input type="radio" name="user_type" value="0" checked="true">用户
                    <input type="radio" name="user_type" value="1">骑手
                    <input type="radio" name="user_type" value="2">商家
                </td>
            </tr>
            <tr>
                <td>电话</td>
                <td>
                    <input type="text" name="pho">
                </td>
            </tr>
            <tr>
                <td>用户名</td>
                <td>
                    <input type="text" name="username">
                </td>
            </tr>
            <tr>
                <td>密码</td>
                <td><input id="pwd" type="password" name="pwd"></td>
            </tr>
            <tr>
                <td>重复输入密码</td>
                <td>
                    <input id="repwd" type="password">
                </td>
            </tr>
            <tr style="text-align: center">
                <td colspan="4">
<!--                    <input type="submit" value="注册">-->
                    <button class="btn btn-primary" type="submit" style="margin-top: 20px;">注册</button>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>